package com.zzyl.common.constant;

/**
 * 缓存的key 常量
 *
 * @author ruoyi
 */
public class CacheConstants {
    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 限流 redis key
     */
    public static final String RATE_LIMIT_KEY = "rate_limit:";

    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";

    public static final String IOT_NEW_DATA = "IOT_NEW_DATA";

    /**
     * 登录状态
     */
    public static final String STATUS_SUCCESS = "1";

    public static final Integer STATUS_FAIL = 0;

    /*
     * redis
     */
    public static final String REDIS_ALERT_COUNT = "REDIS_ALERT_COUNT";

    public static final String REDIS_ALERT_SILENT_KEY = "REDIS_ALERT_SILENT_KEY:";
    public static final String REDIS_ALERT_SILENT_VALUE = "1";
    public static final String REDIS_ALERT_SYMBOL = "_";

    /**
     * 数值
     */
    public static final Integer NUMBER_ZERO = 0;
    public static final Integer NUMBER_ONE = 1;
    public static final Integer NUMBER_TWO = 2;

    /**
     * 字符串
     */
    public static final String STRING_SYMBOL = "~";
    public static final String STRING_EQUAL = "=";
    public static final String STRING_EQUAL_THAN = ">=";
    public static final String STRING_LESS_THAN = "<";
}
